<template>
  <div id="mine">
    <h2>这里是我的</h2>
    <div class="content">
      <div class="content-nav">

        <router-link to="/mine/msg">我的消息</router-link>
        <br>
        <router-link to="/mine/order">我的订单</router-link>

      </div>

      <router-view class="content-list"></router-view>

    </div>
  </div>
</template>

<script setup>
import {onMounted, onUnmounted, onActivated, onDeactivated} from 'vue';

onMounted( () => {
  console.log("Mine ----> onMounted");
});

onUnmounted( () => {
  console.log("Mine ----> onUnmounted");
});

</script>

<style scoped>
#mine{
  width: 400px;
  height: 500px;
  background-color: darkolivegreen;
  justify-content: center;
  align-items: center;
}

.content{
  display: flex;
}

.content-nav{
  width: 80px;
  background-color: gold;
}

.content-list{
  flex: 1;
}

.router-link-active {
  font-size: 1.2em;
  font-weight: bolder;
  color: orangered;
}
</style>
